#import <UIKit/UIKit.h>

@class PIPlugin;

@interface PITodoPreview : UIView <UITableViewDataSource, UITableViewDelegate>
{
	int indexRow;
	CGRect* rect;
}

@property (retain) NSArray* todoListP;
@property (retain) PIPlugin* plugin;
@property (retain) NSString* dbPath;
@property (retain) UITableView* view;
@property (retain) UISegmentedControl* navControl;

@property (retain) NSArray* sections;

-(void)dealloc;
- (id) initWithFrame: (CGRect*) r withList: (NSArray*) l atIndex: (NSIndexPath*) i withPlugin: (PIPlugin*) p;
- (void) buildPreview;
- (void) setRect: (CGRect*) r;
- (CGRect*) getRect;
- (void) setIndex: (int) i;
- (int) getIndex;

- (void) setForIndex:(int)index;

@end
